from django.contrib import admin
from .import models
# Register your models here.

class NewsInfo(admin.ModelAdmin):
    list_display = ['id','category_id','title','create_time']
    ordering = ['id']

class NewCategoryInfo(admin.ModelAdmin):
    list_display = ['id','name']

admin.site.register(models.News,NewsInfo)
admin.site.register(models.NewsCategory,NewCategoryInfo)
admin.site.register(models.NewContent)
admin.site.register(models.NewContentCategory)
